<template>
  <div class="addChe">
    <div class="header">
      <h1>考勤管理</h1>
      <div class="header-right">
        <i class="el-icon-s-home"></i>
        <span class="font-left">首页</span>
        <i class="el-icon-arrow-right"></i>
        <span class="font-right">考勤管理</span>
      </div>
    </div>
    <div class="content">
      <div class="bar">
        <el-button
          type="info"
          icon="el-icon-arrow-left"
          size="mini"
          @click="goBack"
        >
          返回
        </el-button>
      </div>
      <el-form size="small" class="addForm">
        <el-row :gutter="20">
          <el-col :span="12">
            <el-form-item>
              <span slot="label">
                <span class="labelText">类型</span>
              </span>
              <el-select
                v-model="value"
                placeholder="请选择"
                style="width: 100%"
              >
                <el-option
                  v-for="item in cheArr"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item>
              <span slot="label">
                <span class="labelText">备注</span>
              </span>
              <el-input></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-form-item class="btnBox">
          <el-button type="primary" size="small">保存</el-button>
          <el-button type="info" size="small">取消</el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
        cheArr:[
            {
                value:"选项1",
                label:"上班"
            },
            {
                value:"选项2",
                label:"下班",
            },
            {
                value:"选项3",
                label:"外出",
            },
            {
                value:"选项4",
                label:"请假",
            },
            {
                value:"选项5",
                label:"加班",
            },
        ],
        value:"",
    };
  },

  mounted() {},

  methods: {
    goBack() {
      this.$router.push("/checking/CheManage");
    },
  },
};
</script>

<style lang="less" scoped>
html body {
  height: 100%;
  background-color: #f5f5f5;
}
.addDep {
  height: 100%;
}
.header {
  position: relative;
  padding: 15px 15px 0 15px;
  display: flex;
  justify-content: space-between;
}
.header > h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}
.header-right {
  font-size: 12px;
  display: flex;
  align-items: center;
}
.el-icon-arrow-right {
  padding: 0 5px;
  color: #ccc;
}
.el-icon-s-home {
  color: #444;
  display: inline-block;
  margin-right: 5px;
}
.font-left {
  color: #444;
}
.font-right {
  color: #777;
}
.content {
  padding: 15px;
}
.bar {
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  padding: 10px;
  border-top: 3px solid #d2d6de;
  border-bottom: 1px solid #f4f4f4;
}
.labelText {
  color: #333333;
  font-size: 14px;
}
.labelText2 {
  color: #999999;
  font-size: 12px;
  margin-left: 5px;
}
.addForm {
  background-color: #fff;
  padding: 5px;
}
</style>
